package reflect15.constructor;

interface China
{
	public static final String NATIONAL = "China";
	public static final String PROGROMER = "刘兆清";
	public void sayChina();
	public String sayHello(String name,int age);
}
public class CountryPerson implements China
{
	private String name;
	private int age;
	
	public CountryPerson()
	{
		
	}
	public CountryPerson(String name)
	{
		this.name = name;
	}
	
	
	public CountryPerson(String name, int age)
	{
		super();
		this.name = name;
		this.age = age;
	}
	
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public int getAge()
	{
		return age;
	}
	public void setAge(int age)
	{
		this.age = age;
	}
	public void sayChina()
	{
		// TODO Auto-generated method stub
		System.out.println("中国人："+PROGROMER+"，国籍："+NATIONAL);
	}

	public String sayHello(String name, int age)
	{
		// TODO Auto-generated method stub
		return name +",你好！年龄"+age+"岁了";
	}
	
}
